"use strict";

class AbTestMgr {
    static ab_interstitial_force_video_flag = "s0";
    static ab_gqtc_flag = "s0";
    static ab_cpsy_flag = "s0";
    static ab_lxjjyh_flag = "s0";
    static ab_btlj_flag = "s0";
    static ab_jssy = "s0";
    static ab_dmth_flag = "s0";
    static ab_btlj2_flag = "s0";
    static ab_dmth2_flag = "s0";
    static ab_add_step_flag = "s0";
    static ab_gncd = "s0";
    static ab_lcsmzq_flag = "s0";
    static ab_txtjsy_flag = "s0";

    static init(t) {
        if (t) {
            const { ab_interstitial_force_video_flag, ab_add_step_flag, ab_gqtc_flag, ab_gncd, ab_cpsy_flag, ab_lxjjyh_flag, ab_lcsmzq_flag, ab_txtjsy_flag, ab_btlj_flag, ab_jssy, ab_dmth_flag, ab_btlj2_flag, ab_dmth2_flag } = t;
            AbTestMgr.ab_interstitial_force_video_flag = ab_interstitial_force_video_flag || "s0";
            AbTestMgr.ab_add_step_flag = ab_add_step_flag || "s0";
            AbTestMgr.ab_gqtc_flag = ab_gqtc_flag || "s0";
            AbTestMgr.ab_gncd = ab_gncd || "s0";
            AbTestMgr.ab_cpsy_flag = ab_cpsy_flag || "s0";
            AbTestMgr.ab_lxjjyh_flag = ab_lxjjyh_flag || "s0";
            AbTestMgr.ab_lcsmzq_flag = ab_lcsmzq_flag || "s0";
            AbTestMgr.ab_txtjsy_flag = ab_txtjsy_flag || "s0";
            AbTestMgr.ab_btlj_flag = ab_btlj_flag || "s0";
            AbTestMgr.ab_jssy = ab_jssy || "s0";
            AbTestMgr.ab_dmth_flag = ab_dmth_flag || "s0";
            AbTestMgr.ab_btlj2_flag = ab_btlj2_flag || "s0";
            AbTestMgr.ab_dmth2_flag = ab_dmth2_flag || "s0";
        }
    }

    static isDmthFlag() {
        return AbTestMgr.ab_dmth_flag === "s1";
    }

    static isBtljFlag() {
        return AbTestMgr.ab_btlj_flag === "s1";
    }

    static isForceVideoFlagS1() {
        return AbTestMgr.ab_interstitial_force_video_flag === "s1";
    }

    static isForceVideoFlagS2() {
        return AbTestMgr.ab_interstitial_force_video_flag === "s2";
    }

    static isNoGqtcFlag() {
        return AbTestMgr.ab_gqtc_flag === "s1";
    }

    static isOptimizeTravelFundFlag() {
        return AbTestMgr.ab_lxjjyh_flag === "s1";
    }

    static isInsertAdFlagS1() {
        return AbTestMgr.ab_cpsy_flag === "s1";
    }

    static isInsertAdFlagS2() {
        return AbTestMgr.ab_cpsy_flag === "s2";
    }

    static getIsGncd() {
        return AbTestMgr.ab_gncd !== "s0";
    }

    static getIsLcsmzq() {
        return AbTestMgr.ab_lcsmzq_flag !== "s0";
    }

    static getIsTxtjsy() {
        return AbTestMgr.ab_txtjsy_flag !== "s0";
    }

    static getIsJsAb() {
        return AbTestMgr.ab_jssy === "s1";
    }

    static getBtlj2Ab() {
        return AbTestMgr.ab_btlj2_flag === "s1";
    }

    static getDmth2Ab1() {
        return AbTestMgr.ab_dmth2_flag === "s1";
    }

    static getDmth2Ab2() {
        return AbTestMgr.ab_dmth2_flag === "s2";
    }
}

export default AbTestMgr;
